﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.RCSDecoupling.CUiRCSDecouplingCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using EngineeringInternalExtension;
using System.Windows.Forms;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.RCSDecoupling;

public class CUiRCSDecouplingCmd : TxButtonCommand
{
  private CUiRCSDecouplingEnabler m_enabler;

  public CUiRCSDecouplingCmd() => this.m_enabler = new CUiRCSDecouplingEnabler();

  public virtual void Execute(object cmdParams)
  {
    TxPerformanceMeasurementEx.StartMeasureTask("Controller Settings Dialog");
    ((Control) new CUiRCSDecouplingDlg()).Show();
    TxPerformanceMeasurementEx.StopMeasureTask("Controller Settings Dialog");
  }

  public virtual string Category => CUiRCSDStringTable.RCSC_CATEGORY;

  public virtual string Name => CUiRCSDStringTable.RCSC_NAME;

  public virtual string Tooltip => CUiRCSDStringTable.RCSC_TOOLTIP;

  public virtual string Bitmap => "RCSDecoupling.RCSDecoupling.bmp";

  public virtual string LargeBitmap => "RCSDecoupling.RCSDecoupling_LARGE.png";

  public virtual ITxCommandEnabler CommandEnabler => (ITxCommandEnabler) this.m_enabler;

  public virtual ITxImage Image => (ITxImage) TxImageManager.GetImageByKey("ControllerSettings");

  public virtual bool Connect() => true;

  public virtual bool Licensed => TxCommandLicenser.RCSDecouplingLicense;
}
